<?php if (!defined('THINK_PATH')) exit(); ?>
<?php require "./" . APP_NAME . "/Public/fckeditor/fckeditor.php"; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="<?php echo BASE_DIR; ?>top/admincp.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<script language="javascript" src="<?php echo BASE_DIR; ?>js/jquery.js"></script>
<script language="javascript">
$(document).ready(function(){
	$("#Submit2").click(function(){
		$.ajax({
		   type: "POST",
		   url: "<?php echo url('GetEnterpriseInfo','Enterprise'); ?>",
		   data: "name="+$("#enter_id").val(),
		   success: function(msg){
			 $("#ListEnterprise").replaceWith(msg);
		   }
		}); 
	})
	$("#ShowLinkAddHtml").click(function(){
		$("#ShowLink").css('display','');
	})
	$("#CloseLink").click(function(){
		$("#ShowLink").css('display','none');
	})
})
function XXX(val){
	$("#enter_id").val(val);
}
</script>
</HEAD>
<BODY topMargin=10>
<DIV id=append_parent></DIV>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>企业管理&nbsp;»&nbsp;信息服务</TD>
        </TR></TBODY></TABLE><BR>
      <FORM id=settings name=settings action="" method=post>
        <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
        <TBODY>
        <TR class=header>
          <TD colSpan=2>修改信息<IMG 
            src="<?php echo BASE_DIR; ?>top/menu_reduce.gif" name="menuimg_b8e6f4fa493903c4" border=0 id=menuimg_b8e6f4fa493903c4 style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px"> </TD>
        </TR>
        <TBODY id=menu_b8e6f4fa493903c4>
        <TR>
          <TD class=altbg1 width="34%"><B>所属分类:</B><BR>
          信息所属分类</TD>
          <TD width="66%" class=altbg2><select name="id" id="id">
            <option value="<?php echo $Einfo['id']; ?>">不修改 [ <?php echo $Einfo['id']; ?> ]</option>
			<?php foreach($Class as $C): ?>
			<option value="<?php echo $C['id']; ?>" title="此为总分类"><?php echo $C['name']; ?></option>
				<?php foreach($C['class'] as $S): ?>
					<option value="<?php echo $S['id']; ?>" title="此为子分类">
						&nbsp;&nbsp;┣&nbsp;<?php echo $S['name']; ?>&nbsp;┫					</option>
				<?php endforeach; ?>
			<?php endforeach; ?>
          </select>
            <input name="einfos_id" type="hidden" id="einfos_id" value="<?php echo $Einfo['einfos_id']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 width="34%"><B>文章所属企业:</B><BR>
            此篇文章属于的企业</TD>
          <TD class=altbg2><INPUT 
            name=enter_id id="enter_id" size=50 value="<?php echo $Einfo['enter_id']; ?>"><INPUT name=Submit2 type=button class=button id="Submit2" value="模 糊 查 询"><div id="ListEnterprise"></div> </TD></TR>
        <TR>
          <TD class=altbg1 width="34%"><B>是否置顶:</B><BR>
            <SPAN 
            class=smalltxt>置顶</SPAN></TD>
          <TD class=altbg2><select name="einfos_top" id="einfos_top">
		  	<option value="<?php echo $Einfo['einfos_top']; ?>">不修改 [ <?php echo $Einfo['einfos_top']; ?> ]</option>
            <option value="N">不置顶</option>
            <option value="Y">置顶</option>
          </select>          </TD>
        </TR>
        <TR>
          <TD class=altbg1 width="34%"><B>是否公共排序:</B><BR>
            可选项</TD>
          <TD class=altbg2><INPUT 
            name=einfos_sort id="einfos_sort" size=50 value="<?php echo $Einfo['einfos_sort']; ?>"> </TD></TR>
        <TR>
          <TD class=altbg1 width="34%"><B>是否开启外部链接:</B><BR>
            <SPAN 
            class=smalltxt>选择开启外部链接，需要输入外链地址</SPAN></TD>
          <TD class=altbg2><select name="einfos_link">
		  	<option value="<?php echo $Einfo['einfos_link']; ?>">不修改 [ <?php echo $Einfo['einfos_link']; ?> ]</option>
            <option value="N">不开启</option>
            <option value="Y">开启</option>
          </select></TD>
        </TR>
        <TR id="ShowLink">
          <TD class=altbg1 width="34%"><B>外链地址:</B><BR>
            <SPAN class=smalltxt>如果选择开启，则必须填写</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=einfos_linkaddress id="einfos_linkaddress" size=50 value="<?php echo $Einfo['einfos_linkaddress']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 width="34%"><B>审核:</B><BR>
            <SPAN 
            class=smalltxt>是否通过审核</SPAN></TD>
          <TD class=altbg2><INPUT class=radio type=radio value=Y 
            name=einfos_audit CHECKED> 
          是 &nbsp; &nbsp; <INPUT class=radio 
            type=radio value=N name=einfos_audit> 
          否 </TD></TR>
        <TR>
          <TD class=altbg1 vAlign=top width="34%"><B>信息标题:</B><BR>
            <SPAN 
            class=smalltxt>最大输入字符为99个</SPAN></TD>
          <TD class=altbg2><INPUT 
            name="title" id="title" size=50 value="<?php echo $Einfo['title']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 vAlign=top><B>信息内容:</B><BR>
            <SPAN 
            class=smalltxt>不限</SPAN></TD>
          <TD class=altbg2>
			<?php
			$oFCKeditor = new FCKeditor('content') ;
			$oFCKeditor->BasePath = "/" . APP_NAME . "/Public/fckeditor/" ;
			$oFCKeditor->Value = $Einfo['content'] ;
			$oFCKeditor->Height='500px';
			$oFCKeditor->Create() ;
			?>
		  </TD>
        </TR>
        </TBODY></TABLE>
        <BR>
      <CENTER>
        <INPUT name=Submit type=submit class=button id="Submit" value="确 认 修 改">
      </CENTER></FORM></TD></TR></TBODY></TABLE><BR><BR>
<DIV class=footer>
<HR width="80%" color=#9db3c5 noShade SIZE=0>
Powered by <A style="COLOR: #666" href="http://www.ThankPHP.com/" 
target=_blank><B>ThankPHP!</B> 0.1.0</A> &nbsp;© 2009-2010, <B><A 
style="COLOR: #666" href="http://www.ThankPHP.com/" target=_blank>ThankPHP 
Inc.</A></B><SPAN class=smalltxt></SPAN></DIV>
</BODY></HTML>
